package com.small.account.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**

 *

 *
 * @author wangguochao
 * @since 2020-01-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class UserAndRole implements Serializable {
    /**
     * ID
     */
    @TableId(type = IdType.UUID)
    private String id;
    /**
     * appuserid
     */
    private String userId;
    /**
     * 角色ID
     */
    private String roleId;
    /**
     * 角色名
     */
    @TableField(exist = false)
    private String roleNames;
}
